﻿@model MovieTheater.Models.MovieListViewModel

@{
    ViewBag.Title = "Home Page";
}

<div class="jumbotron">
    <h1>ASP.NET</h1>
    <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
    <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>

<div class="row">

    @foreach (var m in Model.Movies)
    {
        <div class="col-md-4">
            <h2>Title: @m.MovieTitle</h2>
            <p>
                <img src="@m.PosterUrl" width="337" height="500" />
            </p>
            <p>Rating: @m.Rating</p>
        </div>
    }

    <div>
        Average Rating: @Model.AverageRating
    </div>
</div>